package org.infodavid.common.persistence;

import javax.persistence.PersistenceException;

/**
 * The Interface IPersistenceProvider.
 */
public interface IPersistenceProvider extends IBasicPersistenceProvider {

	/**
	 * Open.
	 *
	 * @return the persistence session
	 * @throws PersistenceException
	 *             The persistence exception
	 */
	PersistenceSession open() throws PersistenceException;

	/**
	 * Get the delegate.
	 *
	 * @return The delegate.
	 * @throws PersistenceException
	 *             The persistence exception
	 */
	Object getDelegate() throws PersistenceException;
}
